package com.lgq.lgqapiclientsdk;

import com.lgq.lgqapiclientsdk.client.LApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("yuapi.client")
@Data
@ComponentScan
public class LApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public LApiClient lApiClient() {
        return new LApiClient(accessKey, secretKey);
    }

}
